
public class Thread1 extends Thread {
	Donnees d;
	
	Thread1(Donnees d) {
		super();
		this.d = d;
	}

	public synchronized void run(){
		for (int i=1;i<=20;i++){
			try {

				d.remplit(d.getValeur()+1);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
